<?php
	if(isset($_REQUEST['area']) && isset($_REQUEST['action'])){
		$targetpage = $_REQUEST['area'].'/'.$_REQUEST['action'].'.php';
		$menu = $_REQUEST['area'].'/'.'menu.php';
	}
	elseif(!isset($_REQUEST['area']) && isset($_REQUEST['action'])){
		$targetpage = $_REQUEST['action'].'.php';
		$menu = $_REQUEST['area'].'/'.'menu.php';		
	}
	elseif(isset($_REQUEST['area']) && !isset($_REQUEST['action'])){
		$targetpage = $_REQUEST['area'].'/index.php';
		$menu = $_REQUEST['area'].'/'.'menu.php';		
	}
	else{
		$targetpage = 'home.php';
  	    $menu = 'common/categorymenu.php';
	}
?>